package zhtt.manyToMany0_s;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by zhtt on 2017/4/11.
 */
public class Student {
    private Integer id;
    private String name;
    private Set<Course> courseSet;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
        if(courseSet==null){
            courseSet=new HashSet<Course>();
        }
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Course> getCourseSet() {
        return courseSet;
    }

    public void setCourseSet(Set<Course> courseSet) {
        this.courseSet = courseSet;
    }
}
